<section class="home ng-scope">
    <form class="form-horizontal" style="width:600px; margin-top: 20px;">
        <div class="form-group">
            <label class="col-sm-3 control-label">商品名称</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  ng-model="customer.name" placeholder="商品名称">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品描述</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" ng-model="customer.descr"  placeholder="商品描述">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品分类</label>
            <div class="row">
                <div class="col-sm-4">
                    <select class="form-control" ng-model="f.name" ng-options="f.name for f in f_class">
                        <option value="">-- 请选择商品分类 --</option>
                    </select>
                </div>
                <div class="col-sm-4" ng-if="f.name">
                    <select class="form-control" ng-model="s.name" ng-options="s.name for s in s_class">
                        <option value="">-- 请选择商品二级分类 --</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">商品价格</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  ng-model="customer.curPrice"  placeholder="商品价格">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">售价</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" ng-model="customer.outPrice"  placeholder="售价">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">价格单位</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  ng-model="customer.unit" placeholder="价格单位">
            </div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label" style="letter-spacing: -1px">每单位重量及描述</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"  ng-model="customer.curUnitWeight"  placeholder="每单位重量及描述">
        </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="letter-spacing: -1px">库存</label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.stock" placeholder="库存">
                </div>

            </div>

    </div>
        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-9">
                <button class="btn btn-default" ng-click="commodityDetai(customer)">提交</button>
            </div>
        </div>
    </form>
</section>